<?php

namespace app\modules\agent\controllers;

use app\models\search\StatAuthItemSearch;
use app\modules\agent\AdminController;
use Yii;
use app\models\StatAuthAccount;
use app\models\search\StatAuthAccountSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;

/**
 * StatAuthAccountController implements the CRUD actions for StatAuthAccount model.
 */
class StatAuthAccountController extends AdminController
{
    /**
     * Lists all StatAuthAccount models.
     * @return mixed
     */
    public function actionIndex()
    {
        $searchModel = new StatAuthAccountSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }
    public function actionIndexItem()
    {
        $searchModel = new StatAuthItemSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        return $this->render('index-item', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }
}
